class Hello{
public static void main(String[] felight){
System.out.println("Hello Java");

double r=5;
final double pi = 3.14159;
double area = pi*r*r;
System.out.println(area);

float f = 98;
int c;
c= (int)((5.0/9)*(f-32));
System.out.println(" Celsius :"+c);

int a=9,b=8,z;
z=a+b;
System.out.println(z);

int year=20013;
if((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
System.out.println(" year "+year+ " is a leap year");
else
System.out.println(" year "+year+ " is not a leap year");

System.out.println(a++);
System.out.println(++a);
System.out.println(a++);
System.out.println(a--);
System.out.println(--a);
System.out.println(a--);

String s = "1000.22";
double dbl = Double.parseDouble(s);
System.out.println(dbl);

String empid = "8";
int in = Integer.parseInt(empid);
System.out.println(in);

long l = 15;
int i = (int) l;
System.out.println(i);

float p=(float)l;
int q = (int) f;
System.out.println(a);        

int y = (int)f;
System.out.println(y);

double o = 88.98;
int v = (int) o;
System.out.println(v);

char letter = 99;
System.out.println(letter);

int number = 33;
if(number % 2 == 0)
System.out.println(number+ " is even");
else
System.out.println(number+ " is odd");

int num =34,i2;
for(i2 = 2;i2<= num;i2++)
{
if(num % i2 == 0)
{
System.out.println(num+ " is not a prime number");
break;
}
else
{
System.out.println(num+ " is a prime number");
break;
}}

int i3;
for(i3=0; i3<10; i3++)
{
System.out.println(" I love Iceland ");
}

//int count=0;
//while(count < 10)
//{
//System.out.println( " I love sydney");
//count++;
//}

int count1=0;
do
{
System.out.println( " I love sydney");
count1++;
}while(count1 < 10);

int num1=6;
int n1,n2=0,n3=1,i4;
for( i4 = 1;i4 <= num1;i4++)
{
System.out.println( "" +n3+ "");
n1 = n2;
n2 = n3; 
n3 = n1 + n2;
}


System.out.println( o + 23.74);

int fro,ypr = 100;
fro =(ypr*(ypr +1))/2;
System.out.println(fro);


int num2 = 200,i5,cntodd=0,cntevn=0;
for(i5 = 100;i5 <= num2;i5++)
{
if(i5 % 2 == 0)
{
cntevn = cntevn +1;

}
else
{
cntodd = cntodd+1;
}
}
System.out.println( " sum of even "+cntevn);
System.out.println("sum of odd" +cntodd);


int i6 = 100,cntodd1=0,cntevn1=0;
while(i6 <= 200)
{
if(i6 % 2 == 0)
{cntevn1 = cntevn1 +1;
}
else
{
cntodd1 = cntodd1+1;
}i6++;
}
System.out.println( " sum of even "+cntevn1);
System.out.println("sum of odd" +cntodd1);


int j7,i7;
 for(i7=3;i7<=100;i7++)
  {
    for(j7=2;j7<=100;j7++)
    {
     if(i7%j7==0)
     break;
    }
    if(j7==i7)
    System.out.println(i7);
  }
  


int j8,i8,count5=0;
 for(i8=3;i8<=100;i8++)
  {
    for(j8=2;j8<=100;j8++)
    {
     if(i8%j8==0)
     break;
    }
    if(j8==i8)
    count5 = count5 + 1;
    }System.out.println(" total prime no.s"  +count5);



}}